package com.ambow.store.service;

import com.ambow.store.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.tomcat.util.http.parser.HttpParser;

import javax.servlet.http.HttpSession;

/**
* @author MyComputer
* @description 针对表【t_user】的数据库操作Service
* @createDate 2022-11-04 17:49:05
*/
public interface UserService extends IService<User> {
    /**
     * 用户注册
     * @param user
     */
    public void addUser(User user);

    /**
     * 用户登录
     * @param user
     * @return
     */
    public User userLogin(User user);

    /**
     * 修改用户密码
     * @param user
     * @param session
     */
    public void modifyUserPassword(User user, HttpSession session);

    /**
     * 获取用户信息
     * @param session
     * @return
     */
    public User getUserInfo(HttpSession session);

    /**
     * 修改用户信息
     * @param user
     * @param session
     */
    public void modifyUserInfo(User user,HttpSession session);

    /**
     *
     * @param user
     */
    public void modifyUserAvatar(User user);
}
